<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
$("#<?php echo $id;?>").DataSource({url:'openlottery/getlist',
	fields:[[
		{field:'id', title:'ID', align:'center', width:70,sortable:true},
		{field:'xz',  title:'彩票类型 ',align:'center', width:180, sortable:false},
		{field:'kithe', title:'彩票期号 ',align:'center', width:180, sortable:true},	
		{field:'upline', title:'开奖时间', align:'center',  width:240, sortable:true},
		{field:'order_sn', title:'第一球', align:'center',   width:80,  sortable:true},	
		{field:'username',title:'第二球', align:'center', width:80,  sortable:true},	
		{field:'type', title:'第三球', align:'center', width:80,  sortable:true},	
		{field:'content', title:'总和', align:'center', width:200,  sortable:true},
		{field:'money', title:'龙虎', align:'center', width:100,  sortable:true},	
		{field:'rebate', title:'3连', align:'center', width:100,  sortable:true},	
		{field:'lucky_price',title:'状态', align:'center',  width:100,  sortable:true}
		
    ]], tools:[
		{instant:false},
		<?php if(in_array('EDIT',$auth)){?>
		{text:"编辑",iconCls:"icon-edit",handler:function(){
			$('#<?php echo $id?>').DataSource('edit',{title:'查看',get:'order/edit?type=<?php echo $type?>',full:false});
		}},
		<?php }?>
		{type:'combobox',text:'类型',width:100,name:'verify_status',value:'', items:'<option value="">福彩3D</option><option value="1">PC蛋蛋</option>'},
		{type:'textbox', text:'期数', width:100,name:'username'},
		{type:'datebox', text:'日期', width:100,name:'qaddtime'},
		{text:"搜索", iconCls:"icon-search", handler:function(){
			$('#<?php echo $id?>').DataSource('search');
		}},
	'-'
	],
    edit:true,
	footer:true,
	success:function(){

	}
});
</script>